Action hook 'delete_{$meta_type}meta'
in WP Core File wp-includes/meta.php at line 1057
Description
Fires immediately before deleting post or comment metadata of a specific type. The dynamic portion of the hook name, `$meta_type`, refers to the meta object type (post or comment). Possible hook names include: - `delete_postmeta` - `delete_commentmeta` - `delete_termmeta` - `delete_usermeta`
Occurrences
Filename |
Line Number |
wp-includes/meta.php |
1057 |
Parameters
Type |
Name |
Description |
int |
$meta_id |
ID of the metadata entry to delete. |
PHP Doc
/**
* Fires immediately before deleting post or comment metadata of a specific type.
*
* The dynamic portion of the hook name, `$meta_type`, refers to the meta
* object type (post or comment).
*
* Possible hook names include:
*
* - `delete_postmeta`
* - `delete_commentmeta`
* - `delete_termmeta`
* - `delete_usermeta`
*
* @since 3.4.0
*
* @param int $meta_id ID of the metadata entry to delete.
*/